<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <meta name="description" content=""/>
    <meta name="author" content="" />

    <title>后台管理——新增车讯</title>

    <!-- Bootstrap core CSS -->
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet"/>
    <link th:href="@{/css/backstage_add.css}" rel="stylesheet"/>

</head>

<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container-fluid">
        <div class="navbar-header">
            <a href="#">汽车购票后台管理</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse manage navbar-right">
            <ul class="nav navbar-nav">
                <li class="actives"><a th:href="@{/ticket/index}">车讯管理</a></li>
                <li><a th:href="@{/customer/index}">用户管理</a></li>
            </ul>
            <div class="user">
                <a href="#" >admin</a>
                <a href="#" th:href="@{/admin/login}">注销</a>
            </div>
        </div>
    </div>
</nav>

<div class="container-fluid" id="container-fluid">
    <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
            <ul class="nav">
                <li class="active"><a th:href="@{/ticket/index}">车讯列表</a></li>
                <li><a th:href="@{/ticket/query}">车讯查询</a></li>
                <li><a th:href="@{/ticket/notice}">车讯公告</a></li>
            </ul>
        </div>
        <div class="col-md-10 col-md-offset-2 main">
            <form class="form-signin form-inline" th:action="@{/ticket/add}" method="post">
                <h2>新增车讯</h2>
                <label>始发站：<input type="text" class="form-control"id="starting_station" name="starting_station" required autofocus/></label>
                <label>终点站：<input type="text" class="form-control"id="destination" name="destination"  required/></label>
                <label>线路号：<input type="text" class="form-control"id="line_number" name="line_number"  required/></label>
                <label>&nbsp;车&nbsp;牌： &nbsp;<input type="text" class="form-control" id="pleat_number" name="pleat_number" required/></label>
                <div class="selticket" id="selticket" >
                    <ul class="nav" style="display: block;">
                        <li>粤A 11111</li>
                        <li>粤A 22222</li>
                        <li>粤A 33333</li>
                        <li>粤A 44444</li>
                        <li>粤A 55555</li>
                        <li>粤A 66666</li>
                        <li>粤A 77777</li>
                        <li>粤A 88888</li>
                        <li>粤A 99999</li>
                    </ul>
                    <ul class="nav" style="display: none;">
                        <li>沪B 11111</li>
                        <li>沪B 22222</li>
                        <li>沪B 33333</li>
                        <li>沪B 44444</li>
                        <li>沪B 55555</li>
                        <li>沪B 66666</li>
                        <li>沪B 77777</li>
                        <li>沪B 88888</li>
                        <li>沪B 99999</li>
                    </ul>
                    <ul class="nav" style="display: none;">
                        <li>闽C 11111</li>
                        <li>闽C 22222</li>
                        <li>闽C 33333</li>
                        <li>闽C 44444</li>
                        <li>闽C 55555</li>
                        <li>闽C 66666</li>
                        <li>闽C 77777</li>
                        <li>闽C 88888</li>
                        <li>闽C 99999</li>
                    </ul>
                    <button id="perv">上一页</button>
                    <button id="next" style="float: right;">下一页</button>
                </div>
                <label>&nbsp;日&nbsp;期： &nbsp;<input type="datetime-local" class="form-control" id="departure_time" name="departure_time" required/></label>
                <label>&nbsp;位&nbsp;置： &nbsp;<input type="text" class="form-control" id="seating" name="seating" required th:value="50"/></label>
                <label>&nbsp;票&nbsp;价： &nbsp;<input type="text" class="form-control" id="ticket_price" name="ticket_price" required/></label>
                <button class="btn btn-primary btn-block" type="submit">完&nbsp;成</button>
            </form>
        </div>
    </div>
</div>

<!-- Bootstrap core JavaScript
================================================== -->
<script th:src="@{/js/backstage_add.js}"></script>
<script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="../../assets/js/vendor/jquery.min.js"><\/script>')</script>
<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

</body>
</html>
